#include<stdio.h>
int main(){
	int num;
	char op;
	int num1;
	int flag=1;
	scanf("%d",&num);
	while(op!='='){
		scanf("%c",&op);
		if(op!='='){
			scanf("%d",&num1);
			switch(op){
				case'+':num=num+num1;break;
				case'-':num=num-num1;break;
				case'*':num=num*num1;break;
				case'/':
					if(num1==0){
						flag=0;
						printf("ERROR");
					}
					else{
						num=num/num1;
					}
					break;
				default:printf("ERROR");
			}
		}
	}
	if(flag){
		printf("%d",num);
	}
	return 0;
} 
